//--------------------------------------------------------//
//Filename:main.js
//Create Time:2020年02月07日 星期五 09时10分43秒
//Description: 处理路由的具体方法

const m = require('../db/models');
const {wordmodel:word,etymamodel:etyma} = m;


async function queryword(ctx,next){
	console.log('It is here');
	/*let m_word = m.wordmodel;
	let word = ctx.params.word;
	console.log(m);
	let obj =await m_word.findOne({word:word}).populate('etymas');//,{_id:0,word:1,explanations:1,phrase:1});
	console.log(obj);*/
	//ctx.response.body = obj;
	ctx.response.body='<h1>OK</h1>';
}


module.exports = {
	queryword:queryword
}
